﻿using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace huaxin_core
{
    public class LogHelper
    {
        public static readonly ILog loginfo = LogManager.GetLogger("loginfo");

        public static readonly ILog logerror =LogManager.GetLogger("logerror");


        public static void WriteInfo(string info)
        {
            loginfo.Info(info);
        }


        public static void WriteError(string info, Exception ex)
        {
            logerror.Error(info, ex);
        }
    }
}
